package namingService;

import org.omg.PortableServer.POA;

/**
 * Generated from IDL interface "Server".
 *
 * @author JacORB IDL compiler V 2.3.0, 17-Feb-2007
 * @version generated at 6-mar-2009 18.45.05
 */

public class ServerPOATie
	extends ServerPOA
{
	private ServerOperations _delegate;

	private POA _poa;
	public ServerPOATie(ServerOperations delegate)
	{
		_delegate = delegate;
	}
	public ServerPOATie(ServerOperations delegate, POA poa)
	{
		_delegate = delegate;
		_poa = poa;
	}
	public namingService.Server _this()
	{
		return namingService.ServerHelper.narrow(_this_object());
	}
	public namingService.Server _this(org.omg.CORBA.ORB orb)
	{
		return namingService.ServerHelper.narrow(_this_object(orb));
	}
	public ServerOperations _delegate()
	{
		return _delegate;
	}
	public void _delegate(ServerOperations delegate)
	{
		_delegate = delegate;
	}
	public POA _default_POA()
	{
		if (_poa != null)
		{
			return _poa;
		}
		return super._default_POA();
	}
	public void removeEntity(java.lang.String name, java.lang.String address)
	{
_delegate.removeEntity(name,address);
	}

	public void searchEntity(java.lang.String name, java.lang.String requester)
	{
_delegate.searchEntity(name,requester);
	}

	public void insertEntity(java.lang.String name, java.lang.String address)
	{
_delegate.insertEntity(name,address);
	}

}
